import random

class BiasedCoin(object):
    __prob_tail = 0.6      #returns 'Tail' with probability __prob_tail          
    def flip(self):  
        return "Tail" if random.random() < self.__prob_tail else "Head"
